package com.reptile.controller;


import com.common.pojo.Result;
import com.reptile.service.RetryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(value = "测试重试")
@RestController
@RequestMapping("retry")
@RequiredArgsConstructor
public class RetryController {

    @Resource
    private RetryService retryService;

    @GetMapping("/test")
    @ApiOperation(value = "清理重复的图片数据",notes = "清理")
    public Result<?> test() throws Exception {
        Result result = new Result();
        retryService.retryTransferAccounts(1,1,1);
        return result.OK(true);
    }
}
